<template>
  <router-view v-slot="{ Component }">
    <keep-alive>
      <component
        :is="Component"
        :key="$route.name"
        v-if="$route.meta.keepAlive"
      />
    </keep-alive>
    <component
      :is="Component"
      :key="$route.name"
      v-if="!$route.meta.keepAlive"
    />
  </router-view>
</template>

<script>
export default{
  name:'page2'
}
</script>

<script setup>
// import { useStore } from "vuex";
// import { useRouter } from "vue-router";

// const store = useStore();
// const router = useRouter();

// const state = reactive({});

function person() {

}
person.prototype.say = function () {
  console.log('say');
}

let p1 = new person()
console.log(p1);
</script>

<style lang="scss" scoped></style>
